package pl.com.sthaether.mc.exception;

import org.controlsfx.control.action.Action;

public abstract class MCException extends Exception {

    private final String title;
    private final String info;

    protected MCException(String title, String info, Throwable throwable) {
        super(throwable);
        this.title = title;
        this.info = info;
    }

    public String getTitle() {
        return title;
    }

    public String getInfo() {
        return info;
    }

    public abstract Action[] getDialogOptions();

    public abstract void doSelectedOperation(Action action);
}
